Integrand size = 17, antiderivative size = 42 \[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {\tan \left (a+b \log \left (c x^n\right )\right )}{b n}+\frac {\tan ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {3852} \[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {\tan ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}+\frac {\tan \left (a+b \log \left (c x^n\right )\right )}{b n} \]
[In]
[Out]
Rule 3852
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \sec ^4(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {\text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan \left (a+b \log \left (c x^n\right )\right )\right )}{b n} \\ & = \frac {\tan \left (a+b \log \left (c x^n\right )\right )}{b n}+\frac {\tan ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.86 \[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {\tan \left (a+b \log \left (c x^n\right )\right )+\frac {1}{3} \tan ^3\left (a+b \log \left (c x^n\right )\right )}{b n} \]
[In]
[Out]
Time = 16.93 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.88
method | result | size |
derivativedivides | \(-\frac {\left (-\frac {2}{3}-\frac {{\sec \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{3}\right ) \tan \left (a +b \ln \left (c \,x^{n}\right )\right )}{n b}\) | \(37\) |
default | \(-\frac {\left (-\frac {2}{3}-\frac {{\sec \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{3}\right ) \tan \left (a +b \ln \left (c \,x^{n}\right )\right )}{n b}\) | \(37\) |
parallelrisch | \(\frac {-6 {\tan \left (\frac {a}{2}+b \ln \left (\sqrt {c \,x^{n}}\right )\right )}^{5}+4 {\tan \left (\frac {a}{2}+b \ln \left (\sqrt {c \,x^{n}}\right )\right )}^{3}-6 \tan \left (\frac {a}{2}+b \ln \left (\sqrt {c \,x^{n}}\right )\right )}{3 b n {\left (\tan \left (\frac {a}{2}+b \ln \left (\sqrt {c \,x^{n}}\right )\right )-1\right )}^{3} {\left (\tan \left (\frac {a}{2}+b \ln \left (\sqrt {c \,x^{n}}\right )\right )+1\right )}^{3}}\) | \(103\) |
risch | \(\frac {4 i \left (3 \left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}+1\right )}{3 b n {\left (\left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}+1\right )}^{3}}\) | \(225\) |
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.24 \[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {{\left (2 \, \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 1\right )} \sin \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{3 \, b n \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{3}} \]
[In]
[Out]
\[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\int \frac {\sec ^{4}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{x}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1323 vs. \(2 (40) = 80\).
Time = 0.23 (sec) , antiderivative size = 1323, normalized size of antiderivative = 31.50 \[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\int { \frac {\sec \left (b \log \left (c x^{n}\right ) + a\right )^{4}}{x} \,d x } \]
[In]
[Out]
Time = 38.04 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.17 \[ \int \frac {\sec ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {4\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}\,3{}\mathrm {i}+1{}\mathrm {i}\right )}{3\,b\,n\,{\left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}+1\right )}^3} \]
[In]
[Out]